/* zarthray - RayMain.cpp 2009
 * The main procedures for the ray-tracing program */

#include "ZarthMath.h"
#include "Image.h"
#include <iostream>
#include "Scene.h"
using namespace std;

int wmain()
{
	cout << "sizeof(header) = " << sizeof(bmpFileHeader) << endl;
	cout << "sizeof(dibHeader) = " << sizeof(DIBHeader) << endl;

	Image image(2,2);
	Pixel white(255,255,255);
	Pixel red(255,0,0);
	Pixel blue(0,0,255);
	Pixel green(0, 255, 0);

	image(0,0) = red;
	image(0,1) = blue;
	image(1,1) = blue;
	image(1,0) = blue;

	image.WriteToBitmap("test.bmp");

	Scene test;

	(test.Render())->WriteToBitmap("test2.bmp");
	return 0;
}